/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'
import i18n from '@/lang/index'

const adRouter = {
  path: '/adminh5/admanage',
  component: Layout,
  redirect: '/adminh5/admanage/ad/list',
  name: 'Ad',
  alwaysShow: true,
  meta: {
    title: i18n.t('Advertisement'),
    icon: 'size'
  },
  children: [
    {
      path: 'ad',
      component: () => import('@/views/adminh5/admanage/ad/list'),
      name: 'AdList',
      meta: { title: i18n.t('Banners'), icon: 'list' }
    },
    {
      path: 'position',
      component: () => import('@/views/adminh5/admanage/position/list'),
      name: 'AdPositionList',
      meta: { title: i18n.t('Position'), icon: 'list' }
    }

  ]
}
export default adRouter
